﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace MecanicaWPF
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public App()
        {
            this.Startup += new StartupEventHandler(App_Startup);
        }

        void App_Startup(object sender, StartupEventArgs e)
        {

           // WPF.Themes.ThemeManager.ApplyTheme(this, WPF.Themes.ThemeManager.GetThemes()[13]);

            using (var writer = System.IO.File.OpenWrite(@"C:\Users\Danimar\Desktop\Alice 2.2\teste.txt"))
            {
                var enumerador = this.Resources.MergedDictionaries[0].GetEnumerator();
                while (enumerador.MoveNext())
                {
                    var str = enumerador.Key.ToString() + "\r\n" + enumerador.Value.ToString() + "\r\n";
                    var bites = System.Text.Encoding.ASCII.GetBytes(str);
                    writer.Write(bites, 0, bites.Length);
                }
            }
        }
    }
}
